package com.king.reference;

/**
 * @author taomk
 * @version 1.0
 * @since 15-1-27 下午10:45
 */
public class MyObject {

	@Override
	protected void finalize() throws Throwable {
		super.finalize();
		// 被回收时输出
		System.out.println("MyObject finalize called");
	}

	@Override
	public String toString() {
		return "I am MyObject";
	}
}
